import http from '../index'
export const getAll = () => http({
    url: '/api/ysgl',
    method: 'get'
})
export const getList = (params) => http({
    url: '/api/ysgl/cfind?'+params,
    method: 'get'
})
export const addys = (data) => http({
    url: '/api/ysgl',
    method: 'post',
    data
})
export const del = (params) => http({
    url: '/api/ysgl?'+params,
    method: 'delete'
})
export const updata = (data) => http({
    url: '/api/ysgl',
    method: 'put',
    data
})
export const chart = (params) => http({
    url: '/api/ysgl/pic?'+params,
    method: 'get'
})
export const sort = (params) => http({
    url: '/api/ysgl/sort?'+params,
    method: 'get'
})
export const ipage = (data) => http({
    url: '/api/ysgl/page',
    method: 'post',
    data
})